package com.ly.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * @TableName student
 */
@ApiModel(value = "com-ly-demo-entity-Student")
@TableName(value = "student")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student implements Serializable {

    /**
     *
     */
    @ApiModelProperty("主键")
    @TableId(value = "sid")
    private Integer sid;

    /**
     *
     */
    @ApiModelProperty("姓名")
    private String name1;

    /**
     *
     */
    @ApiModelProperty("性别")
    private String gender;

    /**
     *
     */
    @ApiModelProperty("年龄")
    private Integer age;

    /**
     *
     */
    @ApiModelProperty("生日")

    private LocalDateTime birth;

    /**
     *
     */
    @ApiModelProperty("地址")

    private String address;

    /**
     *
     */
    @ApiModelProperty("公司")
    private String department;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}